package com.linzm.batchsave.dao.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.linzm.batchsave.mapper.TbBatchMapper;
import com.linzm.batchsave.po.TbBatch;
import com.linzm.batchsave.dao.TbBatchDao;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Author zimingl
 * @Date 2023/4/22 0:31
 * @Description: TbBatchServiceImpl
 */
@Service
public class TbBatchDaoImpl extends ServiceImpl<TbBatchMapper, TbBatch> implements TbBatchDao {
    @Transactional(rollbackFor = Exception.class)
    public void insertBatchSomeColumn(List<TbBatch> insertList) {
        this.baseMapper.insertBatchSomeColumn(insertList);
    }
}
